<?php
/**
 * Created by PhpStorm.
 * User: superxing-cto
 * Date: 17/5/17
 * Time: 11:55
 */

namespace App\Models;

/**
 * Class SkillTag
 * @property integer id
 * @property integer skill_id
 * @property integer price
 * @property string title
 * @property boolean status
 */
class SkillTag extends ApplicationModel
{
    protected $fillable = [
        'id',
        'skill_id',
        'title',
        'price',
        'status',
    ];

    public function scopeRelease($query)
    {
        return $query->where('status',true);
    }

    public function skill()
    {
        return $this->belongsTo(Skill::class);
    }
}